package cn.tedu.toa.management.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 新闻
 * </p>
 *
 * @author huaqian
 * @since 2021-10-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("f_news")
public class FNews extends Model<FNews> {

    private static final long serialVersionUID = 1L;

    /**
     * 新闻id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 发布用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 新闻类型
     */
    @TableField("type")
    private Integer type;

    /**
     * 新闻标题
     */
    @TableField("title")
    private String title;

    /**
     * 新闻概要
     */
    @TableField("summary")
    private String summary;

    /**
     * 新闻内容
     */
    @TableField("content")
    private String content;

    /**
     * 发布时间
     */
    @TableField("createtime")
    private LocalDateTime createtime;

    /**
     * 修改人
     */
    @TableField("modifyusername")
    private String modifyusername;

    /**
     * 修改时间
     */
    @TableField("modifytime")
    private LocalDateTime modifytime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
